Name :Increase
Symbol :INC
Illustrate:
You can use the Increment command to change the value of the operand in the parameter IN/OUT to change the next larger value and query the results. The "increment" command is executed only when the signal state of "1" is enabled for input EN. If no overflow error occurs during execution, the signal status of enabling the output ENO is also "1".
If one of the following conditions is met, the signal status of the output ENO is "0":
1. The signal status of enabling input EN is "0".
2. The value of the floating-point number is invalid.
Image:
Parameter:
| Parameter | Statement | Type | Description |
|---|---|---|---|
| EN | Input | BOOL | Enable input |
| IN | InOut | INT/SINT/DINT/UINT/USINT/UDINT/ULINT | The value to increment |
| ENO | Output | BOOL | Enable output |
| OUT | Output | INT/SINT/DINT/UINT/USINT/UDINT/ULINT | Incremented value |
Example:
LD:
ST: